package ioperation;

import book.Book;
import book.Booklist;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 刘远望
 * Date: 2025-03-19
 * Time: 20:36
 */
public class ShowOperation implements IOperation{
    @Override
    public void work(Booklist booklist) {
        System.out.println("显示图书");
        int currentSize = booklist.getUseSize();
        for (int i = 0; i < currentSize; i++) {
            Book book = booklist.getBooks()[i];
            System.out.println(book);
        }
    }
}
